﻿namespace Zero.POCO
{
    public enum Domaine
    {
        PLF,
        Lessive,
        Telecom,
        Automobile,
        Autre
    }


    public static class StringToDomaine
    {
        public static Domaine ToDomaine(this string entity )
        {
            switch (entity)
            {
                case "PLf" : {return Domaine.PLF;}
                case "Lessive" : return Domaine.Lessive;
                case "Telecom" : return Domaine.Telecom;
                case "Automobile" : return Domaine.Automobile;
                default:
                    return Domaine.Autre;
            }
        }
    }
}